/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ufs.dcomp.mgemeos.dao;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 *
 * @author Luiz Marcus
 * @modificação 07/01/11
 */
public class Conexao implements interface_dao.IConexao {

    private static String urlConnect = "jdbc:mysql://localhost/sgemeos";
    private static String usuario = "root";
    private static String senha = "12345";
    private static String driver = "com.mysql.jdbc.Driver";

    @Override
    public Connection getConnection() {
		Connection c = null;
		try {

			Class.forName(driver);
			c = DriverManager.getConnection(urlConnect,usuario,senha);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return c;
	}

}